<?php
namespace Api\Model;

class UserModel
{
    /**
     * 用户信息
     * @param  [type] $user_id [description]
     * @return [type]          [description]
     */
    public function info($user_id)
    {
        if (!$user_id) {
            return [];
        }

        $info = M('user')
            ->field('mobile,username,avatar,sex,birth,money,province,city')
            ->find($user_id);
        return $info;
    }
}
